package com.skp.shaphan.toolbars;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import com.skp.shaphan.ShaphanApp;
import com.skp.shaphan.actions.ExecuteSQLAction;
import com.skp.shaphan.debug.LayDebugWindow;
import com.skp.shaphan.ui.SQLEditor;

public class LayDebug extends JButton implements ActionListener {
	private LayDebugWindow win = null;

	public LayDebug() {
		super("LayDbg");
		this.setMnemonic('L');
		this.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if(win == null) {
			win = new LayDebugWindow();
		}
		win.setVisible(true);
	}

}
